<template>
    <div>
        <h1>我是用户界面{{userid}}</h1>
        <button @click="weather">获取天气数据</button>
    </div>
</template>

<script>
  import {get,post} from "../network/request";

  export default {
    name: "User",
    computed:{
      userid(){
        return this.$route.params.userid
      }
    },
    methods:{
      weather(){
        get('http://123.207.32.32:8000/home/multidata').then(res =>{
          console.log(res.data)
        })
        // console.log(get('http://t.weather.sojson.com:80/api/weather/city/101030100'))
      }
    },
  }
</script>

<style scoped>

</style>
